home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.gameReallyOver == 1)
- {
- _X = -10000;
- _Y = 10000;
- _visible = false;
- }
- if(_root.lives >= 2)
- {
- if(isNegative == 0 && _root.negativeColor == 1)
- {
- myColor.negative();
- isNegative = 1;
- }
- if(isNegative == 1 && _root.negativeColor == 0)
- {
- myColor.setTransform(orig);
- isNegative = 0;
- }
- tickCount++;
- if(tickCount >= tickMax)
- {
- _Y = saveY;
- _X = _root.player._x - 10;
- saveY = _root.player._y;
- tickCount = 0;
- }
- if(_root.dir == 6)
- {
- _Y = _Y + _root.speed;
- _X = _X - _root.speed;
- }
- if(_root.dir == 7)
- {
- _X = _X - _root.speed;
- }
- if(_root.dir == 8)
- {
- _Y = _Y - _root.speed;
- _X = _X - _root.speed;
- }
- }
- if(_root.lives <= 1)
- {
- if(deathCount < 100)
- {
- deathCount += 5;
- _width++;
- _height++;
- _alpha = _alpha - 5;
- }
- if(deathCount == 100)
- {
- _alpha = 0;
- }
- }
- }
-